package com.zitangkou.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zitangkou.user.entity.RoleDo;
import com.zitangkou.common.enums.StatusEnum;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * 部门
 *
 * @author Deng Ningning
 * @version 1.0
 * @date 2020/8/31 16:39
 */

@Repository
public interface RoleMapper extends BaseMapper<RoleDo> {

    /**
     * 分页条件查询角色列表
     *
     * @param page
     * @param keyword
     * @param status
     * @return com.baomidou.mybatisplus.core.metadata.IPage<com.zitangkou.user.model.entity.RoleDo>
     * @date 2021/2/27 14:52
     */
    IPage<RoleDo> selectPageByConditions(IPage<RoleDo> page, @Param("keyword") String keyword, @Param("status")
            StatusEnum status);

}
